<!DOCTYPE html>
<html lang="zh-cn">
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta content="yes" name="apple-mobile-web-app-capable"/>
<meta content="yes" name="apple-touch-fullscreen"/>
<meta content="telephone=no" name="format-detection"/>
<meta content="black" name="apple-mobile-web-app-status-bar-style">
<meta name="viewport" content="width=device-width, minimum-scale=1, maximum-scale=1;user-scalable=no;">
<title><?php if(isset($layout['title'])):?><?=$layout['title']?><?php else:?>天天加油<?php endif;?></title>
<meta name="keywords" content="<?php if(isset($layout['keywords'])):?><?=$layout['keywords']?><?php else:?>天天加油,SDP,专业汽车服务电商平台<?php endif;?>">
<meta name="description" content="<?php if(isset($layout['description'])):?><?=$layout['description']?><?php else:?>专业汽车服务电商平台，产品包括加油卡、汽车配件、汽车美容，以及油站和油品的专业知识介绍<?php endif;?>">
<meta name="Author" Content="" />
<meta name="Copyright" Content="深圳麦圈互动技术有限公司。All Rights Reserved" />

<link rel="stylesheet" href="/v2/css/bootstrap.min.css">
<link rel="stylesheet" href="/v2/css/style.css?201509121728">
<script type="text/javascript" src="/v2/js/jquery.min.js"></script>

<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="http://cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<script type="text/javascript" src="/misc/js/jquery.lazyload.min.js"></script>
<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>

<script type="text/javascript" src="/v2/js/global.js?20150909"></script>
</head>

<body>
<script type="text/javascript">
<?php if(!is_not_wx()):?>
<?php $js_sign = $layout['js_sign'];?>
wx.config({
    appId: '<?php echo $js_sign['appid']?>',
    timestamp: <?php echo $js_sign['timestamp']?>,
    nonceStr: '<?php echo $js_sign['noncestr']?>',
    signature: '<?php echo $js_sign['signature']?>',
    jsApiList: [
        'checkJsApi',
        'onMenuShareTimeline',
        'onMenuShareAppMessage',
        'onMenuShareQQ',
        'onMenuShareWeibo'
    ]
});

wx.ready(function () {
});

wx.error(function (res) {
    //alert('wx.error: '+JSON.stringify(res));
});
<?php endif; ?>
$(function(){
    $(window).scroll(function(){
        if($(this).scrollTop()>500){
            $(".fanhui").fadeIn(1500);
        }else{
             $(".fanhui").fadeOut(1500);
        }
    });
    $(".fanhui").click(function(){
        $("body,html").animate({scrollTop:0},1000);
        return false;
    });
});
</script>
<div class="fanhui"><img src="/misc/images/bot_top.png"></div>
<?php $user = session('user_auth');?>
<?php if(intval($user['subscribe']) < 1):?>
<div class="z-up-ewm">
    <div class="z-up-ewm-img">
        <div class="z-up-ewm-pic" style="z-index: 1;"><img src="/misc/images/getqrcode.jpg"></div><!-- getqrcode -->
        <div class="z-up-ewm-text">
        <?php if(isset($layout['alert_msg'])):?>
            <?=$layout['alert_msg'];?>
        <?php else:?>
            <p>长按二维码关注我们</p>
            <p>开店创业赚佣金</p>
            <p>你还在想什么</p>
        <?php endif;?>
        </div>
    </div>
</div>
<?php endif;?>

<?php echo $content?>
<div class="foot_index">
    <div class="foot_index_rx">服务热线：400-66-30666</div>
    <div class="foot_index_tit">Powered by 深圳麦圈互动技术有限公司-<a target="_blank" href="http://www.miitbeian.gov.cn">粤ICP备15055943号-1</a></p></div>
</div>
<?php include APP_PATH.'views/common/nav.php'?>
<div class="hide">
    <script src="http://s11.cnzz.com/z_stat.php?id=1256154074&web_id=1256154074" language="JavaScript"></script>
</div>
</body>
</html>
